<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>用户中心-{$tpshop_config['shop_info_store_title']}</title>
        <link rel="shortcut icon"  href="{$tpshop_config['shop_info_store_ico']}" />
        <meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
        <meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
        <link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css">
        <script src="__STATIC__/js/jquery-1.10.2.min.js"></script>
        <script src="__STATIC__/js/slider.js"></script>
    </head>
    <body>
        <!--------头部开始-------------->
    <include file="Public/header" />
    <!--------头部结束-------------->
    <div class="layout ov-hi">
        <div class="breadcrumb-area">    
            <foreach name="navigate_user" key="k" item="v">
                <if condition="$k neq '首页'"> > </if>  
                <a href="{$v}">{$k}</a> 
            </foreach>
        </div>
    </div>
    <div class="layout pa-to-10 fo-fa-ar">
        <!--菜单-->
        <include file="User/menu" />
        <!--菜单-->
        <div class="fr wi940">
            <div class="myhome-welcome pa-to-20">
                <div class="fl myhome-tx">
                    <div class="w-img"><img src="{$user.head_pic|default='__STATIC__/images/img88.jpg'}" alt=""></div>
                    <div class="w-vip po-ab"><i class="w-v0"></i></div>
                </div>
                <div class="ov-hi ma-le-158">
                    <h2 class="n-name">{$user.nickname}，欢迎您！</h2>
                    <div class="w-info">
                        <span>我的余额：&nbsp;<em>{$user.user_money}</em></span>
                        <span>重消余额：&nbsp;<em>{$user.pay_points}</em></span>
                        <span>等级：{$level[level_name]}</span>
                        <span>
                            <if condition="$user['mobile_validated'] eq 1">
                                <span><a class="link-non-validated" href="">已验证手机</a></span>
                                <else/>
                                <a class="link-non-validated2" href="{:U('Home/User/mobile_validate',array('type'=>'mobile','step'=>1))}">未验证手机</a>
                            </if>
                        </span>
                        <span>
                            <if condition="$user['email_validated'] eq 1">
                                <span><a class="link-non-validated" href="{:U('Home/User/email_validate',array('type'=>'email','step'=>1))}">已验证邮箱</a></span>
                                <else/>
                                <a class="link-non-validated2" href="{:U('Home/User/email_validate',array('type'=>'email','step'=>1))}">未验证邮箱</a>
                            </if>
                        </span>
                        <span>
                            <if condition="$user['is_activate'] eq 1">
                                <span><a class="link-non-validated">己激活</a></span>
                                <else/>
                                <a class="link-non-validated2" href="{:U('Home/Zmd/kthuiyuan',array('user_id'=>$user['user_id']))}">未激活</a>
                            </if>
                        </span>
                        <!--<span><a class="link-non-validated" href="">未实名认证</a></span>-->
                        <!--<span>优惠券&nbsp;<em><a href="">{$user.coupon_count}</a></em>&nbsp;张</span>-->
                        <!--<span>站内信&nbsp;<em><a href="">100</a></em>&nbsp;</span>-->
                    </div>
                    <div class="w-ple pa-to-10">
                        <span><b style="font-size: 14px;">手机账号：</b>&nbsp;<em>{$user.mobile}</em></span> ｜
                        <span><b style="font-size: 14px;">邮箱账号：</b>&nbsp;<em>{$user.email}</em></span> ｜
                        <span><b style="font-size: 14px;">直推人数：</b>&nbsp;<em><if condition="$ztnum eq 0">0 <else />{$ztnum}</if> </em></span> ｜
                        <span><b style="font-size: 14px;">团队人数：</b>&nbsp;<em><if condition="$Think.session.tuan_dui eq ''">0 <else />{$Think.session.tuan_dui} </if></em></span>
                    </div>
                </div>
                <!--        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!--->
                <div class="he50 wddd ma-to-50">
                    <div class="fl ddd-h2">
                        <h2><span>收入数据</span></h2>
                    </div>
                </div>
                <div class="wddd-js ov-in">
                    <div class="list-group-title">
                        <table class="merge-tab" border="0" cellpadding="0" cellspacing="0">
                            <thead>
                                <tr>
                                    <th class="col-pro">日期</th>
                                    <th class="wi230">推荐奖</th>
                                    <th class="wi230">重销奖</th>
                                    <th class="wi230">管理奖</th>
                                    <th class="wi230">领导奖</th>
                                    <th class="wi230">重复消费</th>
                                    <th class="wi230">总计</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="merge-list">
                        <div class="ma-0--1">
                            <div class="o-pro">
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tbody>
                                        <tr>
                                            <td class=""><span>昨日</span></td>
                                            <td class="wi230"><if condition="$zuori['money1'] eq ''">0.00<else/>{$zuori['money1']}</if> 元</td>
                                            <td class="wi230"><if condition="$zuori['money2'] eq ''">0.00<else/>{$zuori['money2']}</if> 元</td>
                                            <td class="wi230"><if condition="$zuori['money3'] eq ''">0.00<else/>{$zuori['money3']}</if> 元</td>
                                            <td class="wi230"><if condition="$zuori['money4'] eq ''">0.00<else/>{$zuori['money4']}</if> 元</td>
                                            <td class="wi230"> - <if condition="$zuori['money5'] eq ''">0.00<else/>{$zuori['money5']}</if> 元</td>
                                            <td class="wi230"><if condition="$zuori['money_total'] eq ''">0.00<else/>{$zuori['money_total']}</if> 元</td>
                                        </tr>
                                        <tr>
                                            <td class=""><span>今日</span></td>
                                            <td class="wi230"><if condition="$jinri['money1'] eq ''">0.00<else/>{$jinri['money1']}</if> 元</td>
                                            <td class="wi230"><if condition="$jinri['money2'] eq ''">0.00<else/>{$jinri['money2']}</if> 元</td>
                                            <td class="wi230"><if condition="$jinri['money3'] eq ''">0.00<else/>{$jinri['money3']}</if> 元</td>
                                            <td class="wi230"><if condition="$jinri['money4'] eq ''">0.00<else/>{$jinri['money4']}</if> 元</td>
                                            <td class="wi230"> - <if condition="$jinri['money5'] eq ''">0.00<else/>{$jinri['money5']}</if> 元</td>
                                            <td class="wi230"><if condition="$jinri['money_total'] eq ''">0.00<else/>{$jinri['money_total']}</if> 元</td>
                                        </tr>
                                    <tr>
                                        <td class=""><span>全部</span></td>
                                        <td class="wi230"><if condition="$total['money1'] eq ''">0.00<else/>{$total['money1']}</if> 元</td>
                                        <td class="wi230"><if condition="$total['money2'] eq ''">0.00<else/>{$total['money2']}</if> 元</td>
                                        <td class="wi230"><if condition="$total['money3'] eq ''">0.00<else/>{$total['money3']}</if> 元</td>
                                        <td class="wi230"><if condition="$total['money4'] eq ''">0.00<else/>{$total['money4']}</if> 元</td>
                                        <td class="wi230"> - <if condition="$total['money5'] eq ''">0.00<else/>{$total['money5']}</if> 元</td>
                                        <td class="wi230"><if condition="$total['money_total'] eq ''">0.00<else/>{$total['money_total']}</if> 元</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <!--        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!--->              
                <div class="wddd"></div>
                <script type="text/javascript" src="__PUBLIC__/welcome/jquery.js"></script>
                <script type="text/javascript" src="__PUBLIC__/welcome/jsapi.js"></script>
                <script type="text/javascript" src="__PUBLIC__/welcome/format+zh_CN,default,corechart.I.js"></script>
                <script type="text/javascript" src="__PUBLIC__/welcome/jquery.gvChart-1.0.1.min.js"></script>
                <script type="text/javascript" src="__PUBLIC__/welcome/jquery.ba-resize.min.js"></script>
                <style>
                    .mainbox{padding:8px;position:relative;}
                    .mainleft{padding-right:268px;}
                    .leftinfo{border:#d3dbde solid 1px; height:308px;}
                    .mainright{width:298px;position:absolute; top:8px; right:8px;}
                    .dflist{border:#d3dbde solid 1px; width:258px; height:308px; float:right;}
                    .dflist1{border:#d3dbde solid 1px; width:258px; height:238px; float:right; margin-top:8px;}
                    .listtitle{height:36px; line-height:36px; border-bottom:solid 1px #d3dbde; text-indent:14px; font-weight:bold; font-size:14px;}
                    .more1{float:right; font-weight:normal;color:#307fb1; padding-right:17px;}
                    .maintj{text-align:center;background: #ECF0F5;}
                    .newlist{padding-left:14px; padding-top:15px;}
                    .newlist li{line-height:25px; text-indent:11px;}
                    .newlist i{width:80px; display:block; float:left; font-style:normal;}
                    .newlist b{font-weight:normal; color:#7b7b7b; padding-left:10px;}
                    .leftinfos{height:238px;margin-top:8px;}
                    .infoleft{border:#d3dbde solid 1px; float:left;height:238px;}
                    .inforight{border:#d3dbde solid 1px; float:right;height:238px; }
                    .tooli{padding:30px 20px;}
                    .tooli li{float:left;padding-left:15px; padding-right:15px;margin-bottom:20px;}
                    .tooli li span{text-align:center;}
                    .tooli li p{line-height:35px; text-align:center;}
                </style>

                <script type="text/javascript">
                    gvChartInit();
                    jQuery(document).ready(function () {
                        jQuery('#myTable5').gvChart({
                            chartType: 'PieChart',
                            gvSettings: {
                                vAxis: {title: 'No of players'},
                                hAxis: {title: 'Month'},
                                width: 650,
                                height: 268
                            }
                        });
                    });
                </script>
                <div class="mainbox">
                    <div class="mainleft">
                        <div class="leftinfo">
                            <div class="listtitle"><a href="#" class="more1">更多</a>数据统计</div>
                            <div class="maintj">
                                <table id='myTable5'>
                                    <thead>
                                        <tr>
                                            <th></th>
                                            <th>直推奖</th>
                                            <th>重销奖</th>
                                            <th>管理奖</th>
                                            <th>领导奖</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <th>2010</th>
                                            <td><if condition="$total['money1'] eq ''">0<else/>{$total['money1']}</if></td>
                                            <td><if condition="$total['money2'] eq ''">0<else/>{$total['money2']}</if></td>
                                            <td><if condition="$total['money3'] eq ''">0<else/>{$total['money3']}</if></td>
                                            <td><if condition="$total['money4'] eq ''">0<else/>{$total['money4']}</if></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <!--leftinfo end-->
                    </div>
                    <!--mainleft end-->
                    <div class="mainright">
                        <div class="dflist">
                            <div class="listtitle"><a href="#" class="more1">更多</a>公司公告</div>
                            <ul class="newlist">
                                <tpshop sql="select * from `__PREFIX__article`  where cat_id = 2 and is_open = 1 order by article_id desc limit 10" item="v" key="k" >    
                		<li><a href="{:U('Home/Article/detail',array('article_id'=>$v[article_id]))}">{$v['title']|getSubstr=0,10}</a> &nbsp;{$v.publish_time|date='Y-m-d',###}</li>
                            </tpshop>
                            </ul>
                        </div>
                    </div>
                </div>
                <script type="text/javascript">
                    setWidth();
                    $(window).resize(function () {
                        setWidth();
                    });
                    function setWidth() {
                        var width = ($('.leftinfos').width() - 12) / 2;
                        $('.infoleft,.inforight').width(width);
                    }
                </script>
                <!--        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!--->       
            </div>
        </div>
    </div>
    <div class="he80"></div>
    <script src="__PUBLIC__/js/global.js"></script>
    <script src="__PUBLIC__/js/pc_common.js"></script>
    <script>
                    function delimg(file, t) {
                        $.get(
                                "/index.php?m=Admin&c=Uploadify&a=delupload", {action: "del", filename: file}, function () {}
                        );
                        $('#head_pic').val('');
                        $('#preview').attr('src', '');
                        $(t).remove();
                    }
                    function add_img(str) {
                        var head_pic = $('#head_pic').val();
                        $('#head_pic').val(str);
                        $('#preview').attr('src', str);
                        if (!head_pic) {
                            $('#img_box').append('<button id="delimg" type="button" onclick="delimg(' + "'" + str + "'" + ',this)">删除图片</button>');
                        } else {
                            $('#delimg').attr('onclick', 'delimg(' + "'" + str + "'" + ',this)');
                        }

                    }
    </script>

    <script type="text/javascript">
        $(document).ready(function () {
            var icon_wh = $(".icon_wh");
            icon_wh.each(function () {
                var thisObj = $(this);
                thisObj.bind("mouseout", function () {
                    $(this).next().css("display", "none");
                });
                thisObj.bind("mouseover", function () {
                    $(this).next().css("display", "block");
                });
            });
        });
    </script>
    <!--------footer-开始-------------->
    <include file="Public/footer" />
    <!--------footer-结束-------------->
</body>
<script>
    /*$(function () {
     $("#h-s").click(function () {
     $('.ec-ta-x').css('left','124px');
     $('.ec-ta-x').css('width','110px');
     $(this).addClass("cullent");
     $('#q-s').removeClass("cullent");
     });
     });
     */
</script>

<script>
    $(function () {
        $("#h-s").mouseover(function () {
            $('.ec-ta-x').css('left', '124px');
            $('.ec-ta-x').css('width', '110px');
            $(this).addClass("cullent");
        });
        $("#h-s").mouseout(function () {
            $('.ec-ta-x').css('left', '0px');
            $('.ec-ta-x').css('width', '124px');
            $(this).removeClass("cullent");
        });
    });
    $(function () {
        $("#q-s").mouseover(function () {
            $('.ec-ta-x').css('left', '0px');
            $(this).addClass("cullent");
        });
        $("#q-s").mouseout(function () {
            $('.ec-ta-x').css('left', '0px');
        });
    });

</script>
</html>